﻿using System.Web.Mvc;
using Filters.Infrastructure;

namespace Filters.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/
        //[CustomAuth(true)] // custom implemented authorize filter
        [Authorize (Users="admin")]
        public string Index()
        {
            return "This is the Index action on the Home Controller";
        }

        [GoogleAuth]
        [Authorize(Users="mega@google.com")]
        [ProfileAction]
        public string List()
        {
            return "This is the List action on the Home Controller";
        }

        [ProfileAction]
        [ProfileAll]
        public string FilterTest()
        {
            return "This is the Action Filter test action";
        }
    }
}